runtime.m.locks (field)

42 uses

	runtime (current package)
		lock_futex.go#L54: 	if gp.m.locks < 0 {
		lock_futex.go#L57: 	gp.m.locks++
		lock_futex.go#L125: 	gp.m.locks--
		lock_futex.go#L126: 	if gp.m.locks < 0 {
		lock_futex.go#L129: 	if gp.m.locks == 0 && gp.preempt { // restore the preemption request in case we've cleared it in newstack
		mgc.go#L606: 	if gp := getg(); gp == mp.g0 || mp.locks > 1 || mp.preemptoff != "" {
		mgcmark.go#L412: 	if mp := getg().m; mp.locks > 0 || mp.preemptoff != "" {
		mgcsweep.go#L361: 	gp.m.locks++
		mgcsweep.go#L367: 		gp.m.locks--
		mgcsweep.go#L445: 	gp.m.locks--
		mgcsweep.go#L467: 	if gp.m.locks == 0 && gp.m.mallocing == 0 && gp != gp.m.g0 {
		mgcsweep.go#L506: 	if gp.m.locks == 0 && gp.m.mallocing == 0 && gp != gp.m.g0 {
		panic.go#L858: 	if gp.m.locks != 0 {
		panic.go#L1250: 	if gp.m.locks < 0 {
		panic.go#L1251: 		gp.m.locks = 1
		panic.go#L1351: 	if mp.locks != 1 || mp.mallocing != 0 || mp.throwing != throwTypeNone || mp.preemptoff != "" || mp.dying != 0 {
		preempt.go#L287: 	return mp.locks == 0 && mp.mallocing == 0 && mp.preemptoff == "" && mp.p.ptr().status == _Prunning
		print.go#L67: 	mp.locks++ // do not reschedule between printlock++ and lock(&debuglock).
		print.go#L72: 	mp.locks-- // now we know debuglock is held and holding up mp.locks for us.
		proc.go#L1359: 	if gp.m.locks > 0 {
		proc.go#L2523: 	if gp.m.locks != 0 {
		proc.go#L3556: 	if mp.locks != 0 {
		proc.go#L3998: 	gp.m.locks++
		proc.go#L4054: 	gp.m.locks--
		proc.go#L4100: 	gp.m.locks++ // see comment in entersyscall
		proc.go#L4134: 	gp.m.locks--
		proc.go#L4160: 	gp.m.locks++ // see comment in entersyscall
		proc.go#L4192: 		gp.m.locks--
		proc.go#L4223: 	gp.m.locks--
		proc.go#L4372: 	gp.m.locks++
		proc.go#L4395: 	gp.m.locks--
		proc.go#L5023: 	gp.m.locks++
		proc.go#L5047: 	gp.m.locks--
		proc.go#L5857: 		print(" mallocing=", mp.mallocing, " throwing=", mp.throwing, " preemptoff=", mp.preemptoff, " locks=", mp.locks, " dying=", mp.dying, " spinning=", mp.spinning, " blocked=", mp.blocked, " lockedg=")
		proc.go#L6571: 	mp.locks++
		proc.go#L6578: 	gp.m.locks--
		runtime1.go#L574: 	gp.m.locks++
		runtime1.go#L581: 	mp.locks--
		runtime1.go#L582: 	if mp.locks == 0 && gp.preempt {
		runtime2.go#L555: 	locks         int32
		sema.go#L211: 		if s.ticket == 1 && getg().m.locks == 0 {
		stack.go#L1058: 		if thisg.m.p == 0 && thisg.m.locks == 0 {